package com.egao.common.component.elasticsearch.listener;

import org.elasticsearch.action.ActionListener;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 监听ElasticSearch异步删除文档
 * @author lym
 */
public class ElasticSearchDeleteListener implements ActionListener {

    private Logger logger = LoggerFactory.getLogger(ElasticSearchDeleteListener.class.getName());

    @Override
    public void onResponse(Object o) {
        logger.info("ElasticSearchDeleteListener Success：" + o);
    }

    @Override
    public void onFailure(Exception e) {
        logger.info("ElasticSearchDeleteListener Failure：" + e.getMessage(), e);
    }
}
